import { REQUEST_TOKEN_KEY } from './constants.ts';

const tokenKey: string = REQUEST_TOKEN_KEY ?? '';

export function getToken() {
  return localStorage.getItem(tokenKey);
}

export function setToken(token: string) {
  return localStorage.setItem(tokenKey, token);
}

export function removeToken() {
  return localStorage.removeItem(tokenKey);
}
